\hypertarget{classActivity}{
\section{Activity Class Reference}
\label{classActivity}\index{Activity@{Activity}}
}
This class represents an activity in the distributed system. A \hyperlink{classManager}{Manager} creates a new \hyperlink{classActivity}{Activity} in order to schedule a \hyperlink{classWorkflow}{Workflow} over the system associating it to a WorkerNetwork.  


{\tt \#include $<$activity.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classActivity_35ed3aeb699446d4afe01ff7f602a90f}{Activity} (const \hyperlink{classWorkflow}{Workflow} \&wf=\hyperlink{classWorkflow}{Workflow}(), const WorkerNetwork \&sbn=WorkerNetwork())
\begin{CompactList}\small\item\em Constructor used as Default one. \item\end{CompactList}\item 
\hypertarget{classActivity_17a69c31023a75b27652a5bdea1be230}{
\hyperlink{classActivity_17a69c31023a75b27652a5bdea1be230}{$\sim$Activity} (void)}
\label{classActivity_17a69c31023a75b27652a5bdea1be230}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
const \hyperlink{classWorkflow}{Workflow} \& \hyperlink{classActivity_0fc85a66cdc8d9337e2ebb358926390b}{getWf} (void) const 
\begin{CompactList}\small\item\em Returns the \hyperlink{classWorkflow}{Workflow} associated to current \hyperlink{classActivity}{Activity}. \item\end{CompactList}\item 
void \hyperlink{classActivity_f358e5a5345ac66948b39ef57d9b323c}{setWf} (const \hyperlink{classWorkflow}{Workflow} \&wf)
\begin{CompactList}\small\item\em Set current \hyperlink{classWorkflow}{Workflow} to provided one. \item\end{CompactList}\item 
const WorkerNetwork \& \hyperlink{classActivity_6a5faae1e98238b0280d80d166961d92}{getSbn} (void) const 
\begin{CompactList}\small\item\em Returns the WorkerNetwork associated to current \hyperlink{classActivity}{Activity}. \item\end{CompactList}\item 
void \hyperlink{classActivity_efe4c83c005a83fd80ab1da8a1035b9f}{setSbn} (const WorkerNetwork \&sbn)
\begin{CompactList}\small\item\em Set current WorkerNetwork to provided one. \item\end{CompactList}\item 
void \hyperlink{classActivity_af3a3c090a8a3e7ffc0c10bc72319489}{scheduleActivity} (void)
\begin{CompactList}\small\item\em Schedule an activity for execution. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents an activity in the distributed system. A \hyperlink{classManager}{Manager} creates a new \hyperlink{classActivity}{Activity} in order to schedule a \hyperlink{classWorkflow}{Workflow} over the system associating it to a WorkerNetwork. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classActivity_35ed3aeb699446d4afe01ff7f602a90f}{
\index{Activity@{Activity}!Activity@{Activity}}
\index{Activity@{Activity}!Activity@{Activity}}
\subsubsection[Activity]{\setlength{\rightskip}{0pt plus 5cm}Activity::Activity (const {\bf Workflow} \& {\em wf} = {\tt {\bf Workflow}()}, \/  const WorkerNetwork \& {\em sbn} = {\tt WorkerNetwork()})}}
\label{classActivity_35ed3aeb699446d4afe01ff7f602a90f}


Constructor used as Default one. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em wf}]The \hyperlink{classWorkflow}{Workflow} to associate current \hyperlink{classActivity}{Activity} to. \item[{\em sbn}]The WorkerNetwork to associate current \hyperlink{classActivity}{Activity} to. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\hypertarget{classActivity_0fc85a66cdc8d9337e2ebb358926390b}{
\index{Activity@{Activity}!getWf@{getWf}}
\index{getWf@{getWf}!Activity@{Activity}}
\subsubsection[getWf]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Workflow} \& Activity::getWf (void) const}}
\label{classActivity_0fc85a66cdc8d9337e2ebb358926390b}


Returns the \hyperlink{classWorkflow}{Workflow} associated to current \hyperlink{classActivity}{Activity}. 

\begin{Desc}
\item[Returns:]Current \hyperlink{classWorkflow}{Workflow}. \end{Desc}
\hypertarget{classActivity_f358e5a5345ac66948b39ef57d9b323c}{
\index{Activity@{Activity}!setWf@{setWf}}
\index{setWf@{setWf}!Activity@{Activity}}
\subsubsection[setWf]{\setlength{\rightskip}{0pt plus 5cm}void Activity::setWf (const {\bf Workflow} \& {\em wf})}}
\label{classActivity_f358e5a5345ac66948b39ef57d9b323c}


Set current \hyperlink{classWorkflow}{Workflow} to provided one. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em wf}]The provided \hyperlink{classWorkflow}{Workflow}. \end{description}
\end{Desc}
\hypertarget{classActivity_6a5faae1e98238b0280d80d166961d92}{
\index{Activity@{Activity}!getSbn@{getSbn}}
\index{getSbn@{getSbn}!Activity@{Activity}}
\subsubsection[getSbn]{\setlength{\rightskip}{0pt plus 5cm}const WorkerNetwork \& Activity::getSbn (void) const}}
\label{classActivity_6a5faae1e98238b0280d80d166961d92}


Returns the WorkerNetwork associated to current \hyperlink{classActivity}{Activity}. 

\begin{Desc}
\item[Returns:]Current WorkerNetwork. \end{Desc}
\hypertarget{classActivity_efe4c83c005a83fd80ab1da8a1035b9f}{
\index{Activity@{Activity}!setSbn@{setSbn}}
\index{setSbn@{setSbn}!Activity@{Activity}}
\subsubsection[setSbn]{\setlength{\rightskip}{0pt plus 5cm}void Activity::setSbn (const WorkerNetwork \& {\em sbn})}}
\label{classActivity_efe4c83c005a83fd80ab1da8a1035b9f}


Set current WorkerNetwork to provided one. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em wf}]The provided WorkerNetwork. \end{description}
\end{Desc}
\hypertarget{classActivity_af3a3c090a8a3e7ffc0c10bc72319489}{
\index{Activity@{Activity}!scheduleActivity@{scheduleActivity}}
\index{scheduleActivity@{scheduleActivity}!Activity@{Activity}}
\subsubsection[scheduleActivity]{\setlength{\rightskip}{0pt plus 5cm}void Activity::scheduleActivity (void)}}
\label{classActivity_af3a3c090a8a3e7ffc0c10bc72319489}


Schedule an activity for execution. 

Through \hyperlink{classTQueueManagerProxy}{TQueueManagerProxy} enqueue one \hyperlink{classTaskDescriptor}{TaskDescriptor} contained in the current \hyperlink{classWorkflow}{Workflow} into a Worker's queue.

Please note that Discovery mechanisms have been already invoked by \hyperlink{classManager}{Manager} during WorkerNetwork creation. 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{activity_8h}{activity.h}\item 
\hyperlink{activity_8cpp}{activity.cpp}\end{CompactItemize}
